diff --git a/plugin/YouPHPFlix2/YouPHPFlix2.php b/plugin/YouPHPFlix2/YouPHPFlix2.php index d5ead9a6f..e4b80c22b 100644 --- a/plugin/YouPHPFlix2/YouPHPFlix2.php +++ b/plugin/YouPHPFlix2/YouPHPFlix2.php @@ -1,117 +1,118 @@ Help"; return $txt.$help; } public function getName() { return "YouPHPFlix2"; } public function getUUID() { return "e3a568e6-ef61-4dcc-aad0-0109e9be8e36"; } public function getPluginVersion() { return "1.0"; } public function getEmptyDataObject() { global $global; $obj = new stdClass(); $obj->pageDots = true; $obj->PlayList = true; $obj->PlayListAutoPlay = true; $obj->Trending = true; $obj->TrendingAutoPlay = true; $obj->DateAdded = true; $obj->DateAddedAutoPlay = true; $obj->MostPopular = true; $obj->MostPopularAutoPlay = true; $obj->MostWatched = true; $obj->MostWatchedAutoPlay = true; $obj->Categories = true; $obj->CategoriesAutoPlay = true; $obj->maxVideos = 20; $obj->SortByName = false; $obj->BigVideo = true; $obj->RemoveBigVideoDescription = false; $obj->BigVideoPlayIcon = true; + $obj->BigVideoMarginBottom = "-350px"; $obj->backgroundRGB = "20,20,20"; $obj->landscapePosters = true; $obj->playVideoOnFullscreen = true; $obj->youtubeModeOnFullscreen = false; $obj->paidOnlyLabelOverPoster = false; $obj->titleLabel = true; $obj->titleLabelOverPoster = false; $obj->titleLabelCSS = ""; return $obj; } public function getHelp(){ if(User::isAdmin()){ return "

YouPHPFlix options (admin)

Option-nameDefaultDescription
DefaultDesigncheckedThe original style, for each category, one row with the newest videos
DateAdded,MostPopular,MostWatched,SortByNamechecked,checked,checked,uncheckedMetacategories
LiteDesignunchecked All categories in one row
separateAudiouncheckedCreate a own row for audio
"; } return ""; } public function getFirstPage(){ global $global; if(!YouPHPTubePlugin::isEnabled("d3sa2k4l3-23rds421-re323-4ae-423")){ return $global['systemRootPath'].'plugin/YouPHPFlix2/view/modeFlix.php'; } } public function getHeadCode() { global $global; $obj = $this->getDataObject(); $css = ""; //$css .= "theme.".css\" rel=\"stylesheet\" type=\"text/css\"/>"; $css .= ""; if(!empty($obj->youtubeModeOnFullscreen) && !empty($_GET['videoName'])){ $css .= ''; $css .= ''; } if(!empty($obj->youtubeModeOnFullscreen)){ $css .= ''; } return $css; } static function getLinkToVideo($videos_id){ $obj = YouPHPTubePlugin::getObjectData("YouPHPFlix2"); $link = Video::getLinkToVideo($videos_id); if(!empty($obj->playVideoOnFullscreen)){ $link = parseVideos($link, 1, 0, 0, 0, 1); } return $link; } public function getFooterCode() { $obj = $this->getDataObject(); global $global; $js = ''; if(!empty($obj->playVideoOnFullscreen)){ $js = ''; }else{ $js = ''; } $js .= ''; return $js; } public function getTags() { return array('free', 'firstPage', 'netflix'); } } diff --git a/plugin/YouPHPFlix2/view/BigVideo.php b/plugin/YouPHPFlix2/view/BigVideo.php index 6a01aef54..304d7beb3 100644 --- a/plugin/YouPHPFlix2/view/BigVideo.php +++ b/plugin/YouPHPFlix2/view/BigVideo.php @@ -1,191 +1,191 @@ BigVideo && empty($_GET['showOnly'])) { if (empty($video)) { ?>
thumbsGif; $poster = $images->poster; $canWatchPlayButton = ""; $get = $_GET; if (User::canWatchVideoWithAds($video['id'])) { $canWatchPlayButton = "canWatchPlayButton"; } $_GET = $get; ?>

IMDb doNotDisplayViews)) { ?> doNotDisplayLikes)) { ?> doNotDisplayCategory)) { ?> "> doNotDisplayGroupsTags)) { if ($value2->label === __("Group")) { ?> text; ?> paidOnlyFreeLabel && !empty($value2->label) && $value2->label === __("Paid Content")) { ?>text; ?>doNotDisplayPluginsTags)) { if ($value2->label === "Plugin") { ?> text; ?> showNotRatedLabel) { include $global['systemRootPath'] . 'view/rrating/notRated.php'; } ?>

RemoveBigVideoDescription)) { $colClass = "col-md-4 col-sm-4 col-xs-6"; } if (empty($obj->landscapePosters) && !empty($images->posterPortrait)) { ?>
<?php echo $video['title']; ?>
RemoveBigVideoDescription)) { ?>